/*
 * Copyright (C) 2017 Pingan, Inc. All Rights Reserved.
 */

package com.pingan.haofang.searchcloud.es.utils;

import com.pingan.haofang.searchcloud.es.constants.EsConstants;

/**
 * Es相关工具类
 *
 * @author zhangbi617
 * @date 2017-07-14
 */
public class EsUtils {

    /**
     * es内部存储所有的indices,type,template都应有前缀，便于管理并不和其他产品线冲突
     *
     * @param sourceName
     * @return
     */
    public static String nameWithPrefix(String sourceName) {
        return EsConstants.INDEX_PREFIX + sourceName;
    }
}
